.group {
  margin-bottom: 0;
  padding-left: var(--mantine-spacing-xs);
  padding-right: var(--mantine-spacing-xs);

  &[data-opened] {
    margin-bottom: calc(var(--mantine-spacing-xl) * 1.2);
  }
}

.header {
  display: flex;
  align-items: center;
  width: 100%;
  height: 32px;
  cursor: pointer;
  color: light-dark(var(--mantine-color-gray-7), var(--mantine-color-white));
}

.chevron {
  width: 15px;
  height: 15px;
  margin-inline-end: var(--mantine-spacing-md);
  transition: transform 150ms ease;

  &[data-collapsed] {
    transform: rotate(-90deg);
  }
}

.title {
  user-select: none;
  font-weight: 700;
  font-family: var(--docs-font-primary);
  line-height: 1;
  padding-top: 4px;
  letter-spacing: 0.5px;
  word-spacing: 1px;
  text-transform: uppercase;
  font-size: var(--mantine-font-size-xs);
}

.link {
  --border-color: light-dark(var(--mantine-color-gray-3), var(--mantine-color-dark-6));

  display: block;
  border-left: 1px solid var(--border-color);
  padding-left: 23px;
  padding-right: var(--mantine-spacing-md);
  padding-top: 8px;
  padding-bottom: 8px;
  margin-left: 7px;
  border-top-right-radius: var(--mantine-radius-sm);
  border-bottom-right-radius: var(--mantine-radius-sm);
  font-size: var(--mantine-font-size-sm);
  user-select: none;
  text-decoration: none;
  color: light-dark(var(--mantine-color-gray-7), var(--mantine-color-dark-1));

  @mixin hover {
    background-color: light-dark(var(--mantine-color-gray-0), var(--mantine-color-dark-7));
  }

  &[data-navbar-link-active] {
    border-color: var(--mantine-color-blue-6);
    color: light-dark(var(--mantine-color-blue-7), var(--mantine-color-blue-2));
    background-color: var(--mantine-color-blue-light);

    & .linkTitle {
      font-weight: 500;
    }

    & .linkDescription {
      color: light-dark(var(--mantine-color-blue-7), var(--mantine-color-blue-2));
    }
  }
}

.linkTitle {
  font-size: var(--mantine-font-size-sm);
}

.linkDescription {
  font-size: var(--mantine-font-size-xs);
  margin-top: 4px;
  line-height: 1.4;
  color: var(--mantine-color-dimmed);
}
